package com.netintech.core.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author luda
 * @date 2019/10/14 10:13
 * 开启WebSocket支持
 */
@Configuration
public class WebSocketConfig {
    @Bean
    @Conditional(WarAndJarWebscoketAutoWired.class)
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }


}
